#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<errno.h>	
#define MAX_MALE 20
#define MAX_SEX 5
#define MAX_TELE 12
#define MAX_ADDR 30
//#define MAX 1000
#define DEFAULT_SZ 3

struct PeoInfo
{
	char name[MAX_MALE];
	int age;
	char sex[MAX_SEX];
	char tele[MAX_TELE];
	char addr[MAX_ADDR];
}PeoInfo;

struct Contact
{
	struct PeoInfo* data;
	int size;
	int capacity;
};

void InitContact(struct Contact* ps);
void AddContact(struct Contact* ps);
void ShowContact(const struct Contact* ps);
void DelContact(struct Contact* ps);
void SearchContact(const struct Contact* ps);
void ModifyContact(struct Contact* ps);
void DestroyContact(struct Contact* ps);
void SaveContact(struct Contact* ps);
void LoadContact(struct Contact* ps);
//void SordContact(struct Contact* ps);